package com.yzd.learnjava.generics;

public class ComParablePet implements Comparable<ComParablePet> {

	public int compareTo(ComParablePet o) {
		return 0;
	}
}

//class Cat extends ComParablePet implements Comparable<Cat>{
//
//	public int compareTo(Cat o) {
//		return 0;
//	}
//}

class Hamster extends ComParablePet implements Comparable<ComParablePet>{

	@Override
	public int compareTo(ComParablePet o) {
		return super.compareTo(o);
	}
	
}

class Gecko extends ComParablePet{}
